﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="../scripts/jquery-1.8.2.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#btnShow").click(function (event) {
                //$.ajaxSetup({ contentType: 'text/json' });
                $("#divPop").text("called");
                $.post("http://weather.china.xappengine.com/api", { city: "shanghai" }, function (data) {
                    //$("#divPop").text(data.name);
                    $("#divPop").text("called");
                });
                //$("#divPop").text("called");
            });
        });
    </script>
</head>
<body>
    <!--http://weather.china.xappengine.com/api-->

    <div>
        <button id="btnShow">执行</button>
    </div>

    <!-- 弹出层 -->
    <div id="divPop" style="background-color: #ffd800; border: solid 1px #000000; position: absolute; display: normal; width: 300px; height: 100px;">
        结果
    </div>
</body>
</html>
